Skip to main content

What’s New

Qrvey 8.5
Version 8.5 (LTS) of the Qrvey platform is now available to customers. This version includes several new features and performance improvements.
Learn More
End-of-life Schedule
We've added a new article that lists the features and endpoints that have been scheduled for deprecation. All features and endpoints will be supported for (1) year after the release date of the LTS version that contains the alternative.
Learn More
NodeJS Deprecation
AWS has announced that it is deprecating NodeJS 12, 14, and 16. To avoid any issues as a result of this deprecation, upgrade your instances of the Qrvey platform as described in this announcement.
Learn More
Version: 8.5

Web Form - End User

When embedded in an application, the Web Form - End User widget enables end users to enter data in a designed Web Form.

Before You Begin

Embed the HTML Tag

Identify where you would like this widget to display in your application, and then add the HTML tag in that location.

The HTML tag for this widget is:

<qrvey-webform-enduser config="configWebForm"></qrvey-webform-enduser>

Embed the Widget Launcher Script Tag

Add the widget launcher script tag to your application.

For reference, the launcher script code is:

<script type="module" src="https://<WIDGETS_URL>/qrvey-webform-enduser/qrvey-webform-enduser/qrvey-webform-enduser.esm.js"></script>
<qrvey-design-widgets settings="configWebForm"></qrvey-design-widgets><script>

Set properties in the JSON configuration object

Define the JSON configuration object by starting with the script provided in the helper code, and then adding additional configuration properties as needed. The script provided contains only the required properties. For reference, an example is copied below. The helper code that you obtained above should include the unique values indicated with brackets (“<>”):

var config = {
webformid: "<WEB_FORM_ID>",
server: "https://<your_qrvey_domain>",
defaultAnswers: [{id:"<QUESTION_ID>",data:"<DATA_STRING>"}]
}

When complete, add the JSON configuration object to your application.

Configuration Object Properties

The following table lists the properties associated with this widget.

PropertyValueRequired
webformidString, WebformID containing the webform.Yes
serverString, The base URL of your instance of the Qrvey platform.Yes
styleString, External CSS Stylesheet URL.No
defaultAnswersObject Array, Option to fill an answer (just for work textFields) with default values. Multiple fields can be added, it only needs questionID and the data(string) to be inserted. Example: [{id:"UMLFTXTT",data:"Default value"}]No

Sample

The following sample demonstrates how this widget can be used in an HTML page.

To use this code in your application, replace the values in brackets (“<>”) with your own values.

HTML Tag:

<qrvey-webform-enduser config="config"></qrvey-webform-enduser>

Widget Launcher Script:

<script type="module" src="https://<WIDGETS_URL>/qrvey-webform-enduser/qrvey-webform-enduser/qrvey-webform-enduser.esm.js"></script>

JSON Configuration Object:

var config = {
style: "", //CSS Stylesheet URL
webformid: "<WEB_FORM_ID>", //QrveyLookUpID
server: "https://<your_qrvey_domain>",
defaultAnswers: [{id:"7VS7I1C_",data:"ID-123456"}]
}

Sample in CodePen

See the widget in CodePen: